<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="KPIBalanceScoreCard.CreateUser" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    </head>
<body bgcolor="#3399ff">

    <form id="form1" runat="server">
   <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                 <div style="text-align: center">
    
        <div class="style1">
<table>
    <tr>
        <td>
        User Reference Number  
        </td>
        <td>
            <asp:TextBox ID="userRefTxt" runat="server" AutoPostBack="True" 
                        ontextchanged="userRefTxt_TextChanged"></asp:TextBox>
             
        </td>
        <td>
        <asp:CustomValidator ID="UserRefValidCustomValidator" runat="server" 
                        ControlToValidate="userRefTxt" ErrorMessage="User Reference not valid" 
                        onservervalidate="UserRefValidCustomValidator_ServerValidate"></asp:CustomValidator>
                   
                    <asp:RequiredFieldValidator ID="UserRefRequiredFieldValidator" runat="server" 
                        ControlToValidate="userRefTxt" ErrorMessage="User Reference Number is Required"></asp:RequiredFieldValidator>
                                     
        </td>
     </tr>
     
     <tr>   
        <td>
        User Name
        </td>
        <td>
        <asp:Label ID="userName" runat="server"></asp:Label>
        </td>
    </tr>
    
    <tr>
        <td>
        Email Address
        </td>
        <td>
        
            <asp:Label ID="email" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
     <td>
        Old Password
        </td>
        <td>
        <asp:TextBox ID="oldPassword" runat="server" TextMode="Password" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="pwd" ErrorMessage="Password Required" SetFocusOnError="True"></asp:RequiredFieldValidator>
        </td>
        </tr>
        <tr>
        <td>
        Password
        </td>
        <td>
        <asp:TextBox ID="pwd" runat="server" TextMode="Password" />
            <asp:RequiredFieldValidator ID="PwdRequiredFieldValidator" runat="server" 
                ControlToValidate="pwd" ErrorMessage="Password Required" SetFocusOnError="True"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
        Confirm Password
        </td>
        <td>
        <asp:TextBox ID="pwdConfirm" runat="server" TextMode="Password" />
            <asp:CompareValidator ID="PwdCompareValidator" runat="server" 
                ControlToCompare="pwd" ControlToValidate="pwdConfirm" 
                ErrorMessage="Passwords do not match" SetFocusOnError="True"></asp:CompareValidator>
        </td>
    </tr>
     <tr>
        <td colspan="2" align="center">
            
         <asp:Label ID="message" runat="server" />
            
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            
            <asp:Button ID="Button1" runat="server" Text="Change Password" 
                onclick="Button1_Click" />
            
        </td>
    </tr>
</table>
</div></div>
   </ContentTemplate>
            </asp:UpdatePanel>
            
    </form>

</body>
</html>
